const ADJUST_STATE_OPTIONS = [
  {
    value: '1',
    label: '待发起'
  },
  {
    value: '2',
    label: '待接收'
  },
  {
    value: '3',
    label: '待审批'
  },
  {
    value: '4',
    label: '已完成'
  },
  {
    value: '-1',
    label: '拒绝'
  }
]
const FORM_ITEMS = [
  {
    prop: 'createOpeTime',
    label: '创建日期',
    type: 'datePicker',
    datePickerType: 'date',
    valueFormat: 'yyyy-MM-dd'
  },
  {
    prop: 'recodeNo',
    label: '子单据号',
    type: 'input',
  },
  {
    prop: 'state',
    label: '状态',
    type: 'select',
    clearable: true,
    options: ADJUST_STATE_OPTIONS
  },
  {
    prop: 'priceChangeAreaName',
    label: '调价区域',
    type: 'input',
  },
  {
    prop: 'willChangeTime',
    label: '预计调价日期',
    type: 'datePicker',
    datePickerType: 'date',
    valueFormat: 'yyyy-MM-dd'
  },
  {
    prop: 'changeTime',
    label: '接收日期',
    type: 'datePicker',
    datePickerType: 'date',
    valueFormat: 'yyyy-MM-dd'
  },
  {
    prop: 'changeDepartName',
    label: '接收部门',
    type: 'input',
  },
  {
    prop: 'storeNo',
    label: '供应商代码',
    type: 'input',
  },
  {
    prop: 'storeName',
    label: '供应商名称',
    type: 'input',
  },
  {
    prop: 'storeManagerAreaName',
    label: '供应商管理区域',
    type: 'input',
  },
  {
    prop: 'skuNo',
    label: 'SKU编码',
    type: 'input',
  },
  {
    prop: 'productName',
    label: '商品名称',
    type: 'input',
  },
  {
    prop: 'productManagerArea',
    label: '商品管理区域',
    type: 'input',
  },
  {
    prop: 'changeNo',
    label: '调价单号',
    type: 'input',
  },
]

const TABLE_COLUMNS = [
  {
    title: '单据号',
    key: 'recodeNo',
  },
  {
    title: '发起人',
    key: 'createOperName',
  },
  {
    title: '发起部门',
    key: 'departName',
  },
  {
    title: '发起区域',
    key: 'createAreaName',
  },
  {
    title: '调价区域',
    key: 'priceChangeAreaName',
  },
  {
    title: '预计调价日期',
    key: 'willChangeTime',
  },
  {
    title: '接收日期',
    key: 'changeTime',
  },
  {
    title: '接收部门',
    key: 'changeDepartName',
  },
  {
    title: '供应商编号',
    key: 'storeNo',
  },
  {
    title: '供应商名称',
    key: 'storeName',
  },
  {
    title: '供应商管理区域',
    key: 'storeManagerAreaName',
  },
  {
    title: 'SPU编码',
    key: 'spuNo',
  },
  {
    title: 'SKU编码',
    key: 'skuNo',
  },
  {
    title: '商品名称',
    key: 'productName',
  },
  {
    title: '商品管理区域',
    key: 'productManagerArea',
  },
  {
    title: '规格',
    key: 'spec',
  },
  {
    title: '计量单位',
    key: 'productUnit',
  },
  {
    title: '原进价',
    key: 'oldUnitPrice',
  },
  {
    title: '需调整进价',
    key: 'newUnitPrice',
  },
  {
    title: '调价单进价',
    key: 'changeOrderPrice',
  },
  {
    title: '浮动比例',
    key: 'changeRatio',
  },
  {
    title: '发起原因',
    key: 'reason',
  },
  {
    title: '落实原因',
    key: 'auditReason',
  },
  {
    title: '调价单号',
    key: 'changeNo',
  },
  {
    title: '上游单据号',
    key: 'orderNo',
  },
  {
    title: '单据来源',
    key: 'fromTypeStr',
  },
  {
    title: '创建日期',
    key: 'createOpeTime',
  },
  {
    title: '状态',
    key: 'stateStr',
  },
]

export {
  FORM_ITEMS,
  TABLE_COLUMNS
}
